SmartFTP FTP Library
IFTPConnection::UploadFileEx Method

Uploads a specified local file to a specified remote file.

IDL
HRESULT UploadFileEx(
    [in] VARIANT varLocalFile, 
    [in] BSTR bstrRemoteFile, 
    [in] long nLocalStartPosLo, 
    [in] long nLocalStartPosHi, 
    [in] long nRemoteStartPosLo, 
    [in] long nRemoteStartPosHi, 
    [out, retval] enumError * retval
);
Parameters

varLocalFile
An indicator of the local file. This may be a path to a file (String/BSTR), an IStream or any object that supports IStream.
nLocalStartPosLo
The restart position of the local file.
nLocalStartPosHi
The restart position of the local file.
nRemoteStartPosLo
The restart position of the remote file.
nRemoteStartPosHi
The restart position of the remote file.
szRemoteFile
The name of the remote file.

The client opens a data connection and uploads the file with the STOR command. In case the nRemoteStartPosLo/nRemoteStartPosHi arguments are greater than zero, the client sends a REST command and the file is being resumed from the position specified in the nRemoteStartPosLo/nRemoteStartPosHi arguments.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.